package sample.plugin.http.window;

import com.rapid.api.component.widget.window.Window;
import com.rapid.api.component.widget.window.WindowFactory;
import com.rapid.api.framework.domain.window.WindowService;
import com.rapid.framework.extension.annotation.Import;
import com.rapid.framework.vfs.VirtualFile;

public class DoRequestWindowFactory implements WindowFactory {
    @Import
    WindowService windowService;

    @Override
    public Window create(VirtualFile virtualFile) {
        return windowService.createEditor();
    }
}
